package com.clw.service;


import com.clw.dataobject.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Administrator on 2017-12-15.
 */
public interface UserService {
    boolean hasMore(String userName);
    
    List<User> findAll();

    User save(User user);

    void del(User user);

    User add(User user);

    User findByUserName(String userName);

    User findOne(Integer id);

    Page<User> findAll(String username, String startTime, String endTime, Pageable pageable);

    Long getSize(String username, String startTime, String endTime);

}
